package com.missilike.biz;

import com.missilike.biz.impl.MilAccountServiceImpl;
import com.missilike.core.domain.DeleteFriendReuqest;
import com.missilike.domain.response.MilAccountInfo;
import com.missilike.repository.entity.MilAccount;
import com.missilike.repository.entity.MilFriendApply;
import com.missilike.repository.entity.MilFriendRelationship;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pengpengli
 * @since 2018-12-19
 */
public interface IMilFriendRelationshipService extends IService<MilFriendRelationship> {

    List<MilAccountInfo> getAllFriends(MilAccount account);
    List<MilAccountInfo> getAllFriends(String id);


    boolean addFriend(MilFriendRelationship relationship);

    void addToBlackList(String fromAccountId, String toAccountId);

    boolean inBlackList(MilFriendApply apply);

    boolean isFriend(String fromId, String toId);

    void setAccountService(MilAccountServiceImpl milAccountService);

    boolean deleteFriend(DeleteFriendReuqest reuqest);
}
